import type { RouteConfigsTable } from "/#/index";
import { $t } from "/@/plugins/i18n";

const warehousTaskRouter: RouteConfigsTable = {
  path: "/warehousTask",
  redirect: "/warehousTask/labeling",
  meta: {
    icon: "information-line",
    title: $t("menus.hswarehousTask"),
    rank: 3
  },
  children: [
    {
      path: "/warehousTask/transfer",
      name: "TackTransfer",
      component: () => import("/@/views/warehousing/index.vue"),
      meta: {
        title: $t("menus.hstasktransfer"),
        roles: ["admin", "super", "warehouse", "user"]
      }
    },
    {
      path: "/warehousTask/liftingCabinet",
      name: "TackLiftingCabinet",
      component: () => import("/@/views/warehousing/index.vue"),
      meta: {
        title: $t("menus.hstaskliftingCabinet"),
        roles: ["admin", "super", "warehouse", "user"]
      }
    },
    {
      path: "/warehousTask/return",
      name: "TackReturn",
      component: () => import("/@/views/warehousing/index.vue"),
      meta: {
        title: $t("menus.hstaskreturn"),
        roles: ["admin", "super", "warehouse", "user"]
      }
    }
  ]
};

export default warehousTaskRouter;
